package com.zhibang;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Contact;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;
import io.swagger.v3.oas.annotations.servers.Server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@OpenAPIDefinition(
        info = @Info( //info 该项目的基本信息
                title = "Swagger3的案例，此处标题",
                description = "项目的描述，此处描述",
                termsOfService = "https://localhost:8080",
                contact = @Contact(//联系方式
                        name = "看客",
                        email = "1325159838@qq.com",
                        url = "https://localhost:8080/联系人公网上的联系地址"
                ),
                license = @License( //授权许可证信息
                        name = "智邦软件许可证 2.0", //许可证名称
                        url = "https://localhost:8080/许可证地址"
                ),
                version = "1.0.0"//版本号
        ),
        servers = { //服务器地址信息
                @Server( //一个@server代表一个服务器
                        url = "https://localhost:8080", //服务器地址
                        description = "开发环境" //服务器描述
                )
        }
)
@SpringBootApplication
public class Main {
    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);
    }
}